package com.example.nyf.entity;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.springframework.boot.context.properties.bind.DefaultValue;

import javax.validation.constraints.NotNull;

@Data
@ToString
public class SysMenu {

    private Integer id;

    @NotNull(message = "菜单名称不能为空")
    @Length(min = 2,max = 10,message = "菜单名称长度需2-10个字符")
    private String menu_name;

    private Integer parent_id;

    @NotNull(message = "排序不能为空")
    private Integer order_num;

    private String url;

    private Integer menu_type;

    private Integer visible;

    private String perms;

    private String icon;
    private String remark;

    private Integer add_user_id;

    private String add_user_name;

    private Integer add_time;
}
